﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace TM.QWeibo.Client.Helper
{
    public class ThemeHelper
    {
        public List<string> ThemeNames {
            get {
                return new List<string> { "Blue", "Black","DarkBlue" };
            }
        }

        public List<KeyValuePair<string,string>> ThemeThumbUri {
            get {

                var format = "/Resource/Images/theme.{0}.png";
                var list = new List<KeyValuePair<string, string>>();
                foreach (var n in ThemeNames) {
                    list.Add(new KeyValuePair<string, string>(n, string.Format(format, n.ToLower())));
                }
                return list;
            }
        }
        /// <summary>
        /// 主题xaml文件
        /// </summary>
        /// <param name="themename"></param>
        /// <returns></returns>
        public static string ThemeFile(string themename) {
            return string.Format("/TM.QWeibo.Client;component/Themes/{0}.xaml", themename);
        }
    }
}
